/*
 * Copyright 2015 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */

/* Container */
body {
  color: #ddd;
  background: #444;
}
#toolbarArea {
  background-color: #333;
  color: #ddd;
  border-bottom: solid 1px #222;
}
#sidebarArea {
  background-color: #333;
  border-left: solid 1px #222;
}
#notebook-container {
  background: #000;
}
button {
  color: #ccc;
}
button:hover {
  color: #fff;
}
.btn-default {
  background-color: #333;
  color: #ddd;
}
.btn-default:hover, .btn-default:focus {
  background-color: #222;
  color: #ddd;
}
#button-select-all {
  border-color: transparent;
  background-color: transparent;
}
.notebook_app {
  color: #ddd;
  background: #444;
}
.cmd-palette form {
  background-color: inherit;
}
#notebook_name:hover {
  background-color: transparent;
}
span.autosave_status {
  color: #ddd;
}
a {
  color: #ffe883;
}
a:visited {
  color: #ffe883;
}
a:hover {
  color: #fff;
}
a.item_link {
  color: #ddd;
}
input {
  background-color: #333;
}
.breadcrumb a {
  color: #3399ff;
}
.breadcrumb a:visited {
  color: #3399ff;
}
.breadcrumb a:hover {
  color: #3399ff;
}
.list_header {
  color: #99ccff;
  background: #333;
}
.list_item:hover {
  background: #555;
}
.dropdown-menu {
  background-color: #555;
  color: #ddd;
}
.dropdown-menu li a {
  color: #ddd;
}
.dropdown-menu li a:hover {
  color: #ddd;
  background-color: #444;
}
#updateMessageArea a {
  color: #333;
}

/* Terminal Page */
#running .panel {
  background-color: #444;
  border-color: #333;
}
#running .panel-group .panel .panel-heading {
  background-color: #333;
}

/* Inside Notebooks */
#contentArea,#notebook-container {
  background-color: #444;
}
div.text_cell_render {
  color: #ddd;
}
.notebook_app .rendered_html table, .notebook_app .rendered_html th,
.notebook_app .rendered_html tr, .notebook_app .rendered_html td,
.notebook_app .rendered_html code, .notebook_app .rendered_html pre {
  background-color: #444;
  color: #ddd;
}
.notebook_app .rendered_html .headerrow {
    background-color: #333;
}
div.cell.selected {
  background: linear-gradient(to right, #42A5F5 -40px, #42A5F5 5px, transparent 5px, transparent 100%);
  border: solid 1px #999 !important;
  box-shadow: 0px 0px 6px 0px rgba(255, 255, 255, 0.3);
}
div.code_cell.session.completed div.input {
  border-left: solid 4px #559ad7;
}
div.code_cell div.input {
  background-color: #333;
  border-left: solid 4px #666;
}
div.output, div.output_area pre, .notebook_app .rendered_html {
  color: #ddd;
}
div.output {
  background-color: #444;
}
div.output_stderr {
  background-color: #a94442;
}
input.raw_input {
  color: #ddd;
  background-color: #333;
}
input.raw_input::selection {
  background: rgba(85, 85, 85, 0.99);
}
input.raw_input::-moz-selection {
  background: rgba(85, 85, 85, 0.99);
}
.CodeMirror {
  color: #ddd;
  background: #333;
}
.CodeMirror-selected {
  background-color: #444 !important;
}
.CodeMirror-cursor {
  border-left-color: #eee;
}
code {
  background-color: #666;
}
.item_icon {
  color: #adadad;
}
.google-visualization-table {
  color: #000;
}
.gchart-table-hoverrow>.gchart-table-cell {
  background-color: #333;
  color: #fff;
}
.gchart-table-cell, tr.google-visualization-table-tr-odd, tr.gchart-table-oddrow, table.dataframe tbody tr:nth-child(odd) {
  background-color: #444;
  color: #ddd;
}
tr.google-visualization-table-tr-even {
  background-color: #333;
  color: #ddd;
}
tr.gchart-table-hoverrow, table.dataframe tbody tr:hover, tr.google-visualization-table-tr-over {
  background-color: #222;
  color: #fff;
}
table.bqsv th, table.bqsv td {
  background-color: #444;
  color: #ddd;
}

/* Monokai theme for code cells */
.cm-s-ipython.CodeMirror {
  background: #333;
  color: #f8f8f2;
}
.cm-s-ipython div.CodeMirror-selected {
  background: #49483E;
}
.cm-s-ipython .CodeMirror-line::selection, .cm-s-ipython .CodeMirror-line > span::selection, .cm-s-ipython .CodeMirror-line > span > span::selection {
  background: rgba(73, 72, 62, .99);
}
.cm-s-ipython .CodeMirror-line::-moz-selection, .cm-s-ipython .CodeMirror-line > span::-moz-selection, .cm-s-ipython .CodeMirror-line > span > span::-moz-selection {
  background: rgba(73, 72, 62, .99);
}
.cm-s-ipython .CodeMirror-gutters {
  background: #272822;
  border-right: 1px solid #666;
  color: #444;
}
.cm-s-ipython .CodeMirror-guttermarker {
  color: white;
}
.cm-s-ipython .CodeMirror-guttermarker-subtle {
  color: #d0d0d0;
}
.cm-s-ipython .CodeMirror-linenumber {
  color: #888;
}
.cm-s-ipython .CodeMirror-cursor {
  border-left: 1px solid #f8f8f0;
}
.cm-s-ipython span.cm-comment {
  color: #888;
}
.cm-s-ipython span.cm-atom {
  color: #ae81ff;
}
.cm-s-ipython span.cm-number {
  color: white;
}
.cm-s-ipython span.cm-property, .cm-s-ipython span.cm-attribute {
  color: #a6e22e;
}
.cm-s-ipython span.cm-keyword, .cm-s-ipython span.cm-builtin {
  color: #48c34e;
}
.cm-s-ipython span.cm-function {
  color: #ff4056;
}
.cm-s-ipython span.cm-string {
  color: #e6db74;
}
.cm-s-ipython span.cm-operator {
  color: #fff;
}
.cm-s-ipython span.cm-type {
  color: #d67135;
}
.cm-s-ipython span.cm-variable {
  color: #f8f8f2;
}
.cm-s-ipython span.cm-variable-2 {
  color: #9effff;
}
.cm-s-ipython span.cm-def {
  color: #fd971f;
}
.cm-s-ipython span.cm-bracket {
  color: #f8f8f2;
}
.cm-s-ipython span.cm-tag {
  color: #f92672;
}
.cm-s-ipython span.cm-header {
  color: #ae81ff;
}
.cm-s-ipython span.cm-link {
  color: #ae81ff;
}
.cm-s-ipython span.cm-error {
  color: red;
}
.cm-s-ipython .CodeMirror-activeline-background {
  background: #373831;
}
.cm-s-ipython .CodeMirror-matchingbracket {
  color: white !important;
}

/* File finder autocomplete */
#tree-filter {
  background-color: #2b2b2b;
  color: white;
  border: #666 1px solid;
}
.ui-autocomplete {
  background-color: #444;
  border: #333 1px solid;
}
.ui-menu-item > a {
  color: white;
  border-bottom: #666 1px solid;
}
.ui-menu .ui-menu-item a:hover, .ui-menu-item .ui-state-focus {
  background-color: #555;
}

/* Modals */
.modal-content {
  background-color: #444;
}
.modal-header,.modal-body,.modal-body>textarea,.modal-footer {
  background-color: #333;
  color: #ddd;
}
.modal-header {
  border-bottom: 1px solid #444;
}
.modal-footer {
  border-top: 1px solid #444;
}
.close {
  color: inherit;
  opacity: 0.5;
}


#texteditor-backdrop, #texteditor-backdrop #texteditor-container .CodeMirror-gutter {
  background: #333;
}

svg>rect {
  fill: #444;
}
svg text {
  fill: #ddd;
}

/* ANSI colors */
span.ansiblack {
  color: #323537;
}
span.ansiblue {
  color: #6aa7ea;
}
span.ansigray {
  color: #838184;
}
span.ansigreen {
  color: #98ef8a;
}
span.ansipurple {
  color: #9b859d;
}
span.ansired {
  color: #ff1d1d;
}
span.ansiyellow {
  color: #f9ee98;
}

